<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="/libs/bootstrap/css/bootstrap.min.css">
		<link rel="stylesheet" href="/css/myshopcar.css">
	</head>
	<body>
		<header></header>
		<div id="greycar"></div>
		<div class="shoppingtrolley_topline"></div>
		<div class="shoppingtrolley">
			<div class="shoppingtrolley_center">
				<!-- <div class="trolley_tittle"><span>我的购物车</span></div> -->
			
				
					<!-- <ul class="liemingc">
						<li class="ipts"><input type="checkbox" class="checks"/></li>
						<li class="shangpin">商品</li>
						<li class="guige">规格</li>
						<li class="danjia">单价</li>
						<li class="shuliang">数量</li>
						<li class="xiaoji">小计</li>
						<li class="caozuo">操作</li>
					</ul> -->
					<!-- 
					<ul class="myshopcar_shangmingm">
						<li class="ipt"><input type="checkbox" class="check"></li>
						<li class="tbody_img" ><a href=""><img src="../img/20190902132944_87684.jpg" ></a></li>
						<li class="dangaoming" ><a href="">520数字蛋糕</a></li>
						<li class="dangaoguig"><span>标准规格</span></li>
						<li class="dangaojiage">199</li>
						<li class="jiajian"><a href="" id="right_cake_reduce"><img src="/img/cuts.png" ></a>
							<input type="text" class="td_money_num" name="num" id="money_num" value="1" />
							<a href="" id="right_cake_add"><img src="/img/add.png" ></a></li>
						<li class="dangaomoney">￥295</li>
						<li class="cha"><a href=""><img src="/img/dele_ico.png" alt=""></a></li>
					</ul>
				 -->
			<script type="text/html" id="shoppingcar_template">
				<div class="trolley_tittle"><span>我的购物车</span></div>
				<ul class="liemingc">
					<li class="ipts"><input type="checkbox" class="checks"/></li>
					<li class="shangpin">商品</li>
					<li class="guige">规格</li>
					<li class="danjia">单价</li>
					<li class="shuliang">数量</li>
					<li class="xiaoji">小计</li>
					<li class="caozuo">操作</li>
				</ul>
				{{each cart shop}}
				<ul class="myshopcar_shangmingm" data-id="{{shop.id}}">
					<li class="ipt"><input type="checkbox" class="check" {{shop.check ? 'checked' : ''}}></li>
					<li class="tbody_img" ><a href="/html/commodity.html?id={{shop.id}}"><img src="{{shop.src}}" ></a></li>
					<li class="dangaoming" ><a href="/html/commodity.html?id={{shop.id}}">{{shop.tittle}}</a></li>
					<li class="dangaoguig"><span>标准规格</span></li>
					<li class="dangaojiage">{{shop.num}}</li>
					<li class="jiajian"><span id="right_cake_reduce" class="right_cake_reduce"><img src="/img/cuts.png" ></span>
						<input type="text" class="td_money_num" name="num" class="money_num" value="{{shop.count}}" />
						<span id="right_cake_add" class="right_cake_add"><img src="/img/add.png" ></span></li>
					<li class="dangaomoney">{{(shop.num*shop.count).toFixed(2)}}</li>
					<li class="cha"><img src="/img/dele_ico.png" alt=""></li>
				</ul>
				{{/each}}
				<div class="trollet_total">
			<span class="bload">共
			<span id="trolley_num">1</span>
			件商品 | 合计
			<span id="allmoney">199</span>
			元
			</span>
			<br>
			<br>
			<br>
			<button type="button" class="trollet_buyna back">继续购物</button>
			  <button type="button" class="btn btn-primary btn-lg trollet_buyna car_bootstarp" data-toggle="modal" data-target="#buy">下单结算</button></li>
			<br>
			<br>
		</div>
			</script>
		
		
		</div>
		</div>
		
		<div class="nocake">
			<div class="nocake_center">
				<div class="no_img"></div>
			    <div class="fanhui"><a href="/html/modules/top.html">然而并没有，快去选购吧！</a></div>
			</div>
		</div>
		<footer></footer>
		<script src="/libs/require/require.min.js" data-main="/js/myshopcar"></script>
		
		<!-- Modal -->
		<div class="modal fade" id="buy" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
		  <div class="modal-dialog" role="document">
		    <div class="modal-content">
		      <div class="modal-header">
		        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		        <h4 class="modal-title" id="myModalLabel">确定信息并付款</h4>
		      </div>
		      <div class="modal-body">
		       <p>收货人:<input type="text" id="danxuan" value=""  /></p> 
				<p>地址:<input type="text" id="duoxuan"  value="" title="仅支持市区配送"/></p> 
				<p>联系方式:<input type="text" id="panduan"  value=""/></p>
				<img src="/img/pay.jpg" alt="">
		      </div>
		      <div class="modal-footer">
		        <button type="button" class="btn btn-default" data-dismiss="modal">我再看看</button>
		        <button type="button" class="btn btn-primary">付款已完成</button>
		      </div>
		    </div>
		  </div>
		</div>
	</body>
</html>
